package com.ddtech.business.task.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class TaskReqVo {

    @ApiModelProperty(value = "任务id")
    private String id;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "任务描述")
    private String taskDesc;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "学习时长")
    private Integer duration;

    @ApiModelProperty(value = "任务状态：0未发布，1已发布")
    private Integer status;

    @ApiModelProperty(value = "关联考核任务")
    private String checkId;

    @ApiModelProperty(value = "考核任务名称")
    private String checkName;

    @ApiModelProperty(value = "学习人员")
    private List<TaskUserReqVo> taskUser;

    @ApiModelProperty(value = "关联课程")
    private List<TaskCourseReqVo> taskCourse;


}
